home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 2: Applications
/
Linux Cubed Series 2 - Applications.iso
/
circuits
/
irsim-ca.2
/
irsim-ca
/
irsim-cap-9.2
/
src
/
ana11
/
movetot.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-15
|
670b
|
36 lines
/***** Copyright (C) 1989 Stanford University, Arturo Salz ****/
#include "ana.h"
#include "ana_glob.h"
private void MoveToT( str )
char *str;
{
TimeType start;
double tmp;
if( str == NULL )
{
XBell( display, 0 );
return;
}
tmp = atof( str );
start = (int) ns2d( tmp );
if( start < tims.first or start > tims.last or start == tims.start )
return;
tims.start = start;
tims.end = start + tims.steps;
RedrawTimes();
UpdateScrollBar();
DrawTraces( start, tims.end );
}
public void MoveToTime( s )
char *s; /* the menu string => ignore it */
{
Query( "\nEnter Time > ", MoveToT );
}